var heapdump = require('heapdump');
var string = '1 string to rule them all';
var leakyArr = [];
var count = 2;
setInterval(function () {
	leakyArr.push(string.replace(/1/g, count++));
}, 0);
setInterval(function () {
	if (heapdump.writeSnapshot()) console.log('wrote snapshot');
}, 10000)
